package com.simtop.dao;

import com.simtop.pojo.Robot;
import com.simtop.pojo.RobotResult;
import com.simtop.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface U3DRobotDao {
    int add(RobotResult robot);

    List<RobotResult> findById(@Param("id") Integer id, @Param("roleId") Integer roleId, @Param("userId") Integer userId);

    List<Robot> findResult(User user);

    int deleteById(int id);

    List<Robot> findByName(String name);

    int findUserAccount();

    int expAcct();

    List<RobotResult> expTime();

    String findName(String name);

    Integer addCommitScore(@Param("id") Integer id, @Param("commitScore") Integer commitScore, @Param("evaluation") String evaluation);
}
